﻿<!--
Author : K.F.Storm
Email : yk000123 at sina.com
Website : http://www.kfstorm.com	
-->
<local:ChildWindowBase x:Class="DoubanFM.ExceptionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:local="clr-namespace:DoubanFM"
        xmlns:resx="clr-namespace:DoubanFM.Resources"
        Title="{x:Static resx:Resources.ExceptionWindowTitle}" Background="#FF1960AF">
	<StackPanel Width="300" Margin="10">
		<Grid x:Name="ErrorPicture" Height="150" >
			<Viewbox x:Name="ErrorImage" Width="100" Height="100" VerticalAlignment="Bottom" Margin="0,0,0,10">
				<Canvas Width="256" Height="256" Clip="F1 M 0,0L 256,0L 256,256L 0,256L 0,0">
					<Path Width="224" Height="212.585" Canvas.Left="16" Canvas.Top="21.7075" Stretch="Fill" Fill="White" Data="M 16,106.293L 30.2098,106.293L 221.99,21.7075L 226.535,32.0119L 58.118,106.293L 240,106.293L 240,234.293L 16,234.293L 16,106.293 Z M 48,195.293C 39.1634,195.293 32,202.456 32,211.293C 32,220.129 39.1634,227.293 48,227.293C 56.8365,227.293 64,220.129 64,211.293C 64,202.456 56.8365,195.293 48,195.293 Z M 208,195.293C 199.163,195.293 192,202.456 192,211.293C 192,220.129 199.163,227.293 208,227.293C 216.836,227.293 224,220.129 224,211.293C 224,202.456 216.836,195.293 208,195.293 Z M 80,201.694L 80,206.793L 90.7031,206.793L 90.7031,211.246L 101.203,211.246L 101.203,206.793L 176,206.793L 176,201.694L 101.203,201.694L 101.203,195.412L 90.7031,195.412L 90.7031,201.694L 80,201.694 Z M 80,216.665L 80,221.764L 122.495,221.764L 122.495,226.85L 132.995,226.85L 132.995,221.764L 176,221.764L 176,216.665L 132.995,216.665L 132.995,211.017L 122.495,211.017L 122.495,216.665L 80,216.665 Z M 68,124.536L 109.569,148.536L 115.569,152L 109.569,155.464L 68,179.464L 64,172.536L 99.5692,152L 64,131.464L 68,124.536 Z M 188,179.464L 146.431,155.464L 140.431,152L 146.431,148.536L 188,124.536L 192,131.464L 156.431,152L 192,172.536L 188,179.464 Z "/>
				</Canvas>
			</Viewbox>
			<Viewbox x:Name="Oops" Width="100" Height="50">
				<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="DoubanFM__Oops" Width="256" Height="128" Clip="F1 M 0,0L 256,0L 256,128L 0,128L 0,0">
					<Path Width="223.052" Height="120.663" Canvas.Left="16.0596" Canvas.Top="3.77125" Stretch="Fill" Fill="White" Data="M 16.0596,63.7841C 16.8853,55.186 16.7983,44.9851 22.7855,38.7592C 29.1023,32.1905 38.9362,28.8769 48.0285,28.2594C 60.9428,36.9592 64.48,59.3033 58.6624,73.7471C 52.8812,81.4168 46.3284,91.6667 36.7572,92.4655C 25.0082,93.4461 16.0596,75.574 16.0596,63.7841 Z M 23.5403,63.1635C 25.3915,69.6907 28.089,76.4957 32.9833,81.1942C 35.3506,82.1437 37.9804,82.4522 40.5311,82.4522C 45.201,80.272 48.0947,75.4484 51.8023,71.8686C 54.8098,62.3603 57.8219,48.7437 50.4941,41.9795C 48.5068,41.9795 46.7536,43.3455 44.8249,43.8245C 41.074,42.3458 36.2987,39.0646 32.9833,41.3589C 26.4703,45.8661 24.6729,55.3244 23.5403,63.1635 Z M 69.615,68.8159C 70.7526,61.3484 72.6993,52.8608 78.4299,47.9395C 82.7699,44.2124 89.6404,45.1328 95.3611,45.1328C 106.462,47.9268 115.585,65.2871 110.926,75.7431C 108.832,80.4433 104.623,83.9176 100.963,87.5343C 95.7513,90.1935 89.6477,93.0227 83.9305,91.7778C 79.3405,90.7783 75.8008,86.785 72.7179,83.2405C 71.8961,80.9482 70.7645,78.7444 70.2523,76.3637C 69.7214,73.8953 69.8274,71.3318 69.615,68.8159 Z M 77.7498,72.5898C 78.7953,74.8821 79.5336,77.3411 80.8863,79.4666C 81.6823,80.7176 83.022,81.5241 84.0899,82.5528C 85.3478,82.9554 86.5457,83.6752 87.8637,83.7605C 90.1522,83.9084 92.4371,83.4138 94.7238,83.2405C 101.659,78.8922 104.039,67.076 100.963,59.4903C 98.5405,57.0676 96.2212,53.2508 92.7949,53.2508C 91.0624,54.0543 90.5943,56.4789 89.021,57.5614C 86.3902,59.3716 82.5619,59.1692 80.2154,61.3353C 79.6171,63.4095 78.8827,65.4492 78.4207,67.558C 78.0586,69.2109 77.9734,70.9125 77.7498,72.5898 Z M 123.405,118.195C 125.376,108.417 124.171,97.8095 120.94,88.373C 119.794,85.0276 122.456,81.3663 122.198,77.8397C 121.485,68.1104 121.789,58.2719 120.252,48.6383C 122.001,45.8633 125.777,44.2439 129.058,44.2439C 130.525,45.7115 131.607,47.7201 133.469,48.6383C 141.646,46.9934 150.25,45.9102 158.46,47.3804C 168.32,52.1231 156.811,70.629 149.822,79.0473C 143.948,83.4986 137.84,87.661 131.523,91.4591C 131.523,101.069 135.297,110.43 135.297,120.04C 133.658,122.662 130.221,124.434 127.129,124.434L 125.971,123.126L 123.405,118.195 Z M 147.206,54.7772C 141.138,55.3286 134.653,57.4105 130.265,61.6372L 130.265,81.5129C 130.896,82.1268 131.951,82.1335 132.831,82.1335C 141.484,76.6005 150.004,69.2419 154.066,59.809C 154.066,56.9731 150.042,54.7772 147.206,54.7772 Z M 167.618,88.6916C 167.618,84.9131 174.65,85.8923 178.277,84.8339C 185.232,82.8045 193.314,81.5362 198.228,76.2127C 198.228,73.7053 193.868,73.3181 191.368,73.1265C 185.133,72.6487 178.707,73.4248 172.65,71.8686C 167.572,69.4989 172.663,59.2314 176.944,55.6158C 183.542,50.0429 189.679,43.3575 197.658,40.0507C 199.309,40.0507 200.785,41.3492 201.952,42.5163C 202.825,44.2194 202.623,46.305 202.623,48.219C 196.225,54.4885 184.641,55.7315 180.718,63.7841C 183.538,66.6042 188.648,64.6573 192.626,64.9414C 199.156,65.4079 207.702,66.6995 210.758,72.4892C 210.758,76.5245 206.763,79.6278 203.881,82.4522C 193.734,87.6369 182.759,92.285 171.392,93.0861C 170.134,92.0574 168.677,91.2327 167.618,89.9999C 167.334,89.6691 167.618,89.1277 167.618,88.6916 Z M 218.154,87.9536C 217.961,87.5958 217.712,87.2633 217.576,86.8802C 216.466,83.7514 220.151,79.2974 223.438,78.8293C 225.223,78.575 226.794,80.4303 227.95,81.8148C 228.868,82.9151 229.228,84.6948 228.738,86.0415C 228.502,86.6893 228.351,87.3932 227.95,87.9536C 227.289,88.8762 226.384,89.5974 225.601,90.4192C 223.105,91.1964 219.958,89.8472 218.154,87.9536 Z M 222.918,62.0565C 222.401,49.8838 223.858,37.6307 225.987,25.6345C 227.342,18.0011 227.872,8.62128 233.921,3.77125C 246.065,6.28127 233.421,28.7 230.969,40.8558C 229.915,46.0771 229.476,51.4175 228.268,56.6054C 227.764,58.7715 228.053,61.0495 227.849,63.2642C 227.694,64.9493 223.976,63.377 222.918,62.0565 Z "/>
				</Canvas>
				<Viewbox.RenderTransform>
					<TransformGroup>
						<TranslateTransform X="-50" Y="-20"/>
						<RotateTransform Angle="-30"/>
					</TransformGroup>
				</Viewbox.RenderTransform>
			</Viewbox>
		</Grid>
		<Grid>
			<StackPanel x:Name="ShortMessagePanel">
				<TextBlock Text="{x:Static resx:Resources.ShortMessageTextBlock}"/>
				<TextBlock x:Name="TbShortExceptionMessage" TextWrapping="Wrap"/>
			</StackPanel>
			<TextBox x:Name="TbExceptionMessage" Height="200" IsReadOnly="True" Visibility="Collapsed"/>
		</Grid>
		<StackPanel x:Name="UserMessagePanel">
            <TextBlock TextWrapping="Wrap" Text="{x:Static resx:Resources.UserMessageTextBlock}"/>
            <TextBox x:Name="TbUserMessage" AcceptsReturn="True" Height="50" TextWrapping="Wrap"/>
		</StackPanel>
		<ProgressBar x:Name="PbSending" Height="24" Margin="0,10" IsIndeterminate="True" Visibility="Collapsed"/>
		<Grid Margin="10">
			<Grid.ColumnDefinitions>
				<ColumnDefinition/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
            <Button x:Name="BtnViewExceptionMessage" Click="BtnViewExceptionMessage_Click" Width="100" Height="40" Visibility="Collapsed" Content="{x:Static resx:Resources.ViewErrorMessageButton}"/>
            <Button x:Name="BtnOK" Click="BtnOK_Click" Width="100" Height="40" Content="{x:Static resx:Resources.SendErrorButton}"/>
            <Button x:Name="BtnCannel" Grid.Column="1" Click="BtnCannel_Click" Width="100" Height="40" Content="{x:Static resx:Resources.CloseButton}"/>
        </Grid>
	</StackPanel>
</local:ChildWindowBase>
